function update_st_on_disk(param0, param1)
% [net, solv, cmd, Train, Test] = param0{:};
% [net, solv, cmd, Train, Test] = param1{:};

% search for the existing path
net = mycaffe.net(param0{:});

% update st
[st, cmd, net_file, Train, Test] = param1{:};
st = mycaffe.solver.reset(st, cmd, net_file, Train, Test);

[~, net_name] = fileparts(net_file);
st.snapshot_prefix = fullfile(net.model_path, net_name);

save(fullfile(net.result_path, 'st.mat'), 'st')
